* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #03e9f4;
}

a:hover {
    color: #fff;
}

input,
button {
    background: transparent;
    border: 0;
    outline: none;
}

body {
    background: linear-gradient(#141e30, #243b55);
    display: flex;
    justify-content: space-between;
    /* 修改为 space-between 以确保内容和页脚之间有足够的空间 */
    align-items: flex-start;
    font-size: 16px;
    color: #03e9f4;
    position: relative;
    flex-direction: column;
    min-height: 100vh;
    /* 设置最小高度为视口高度 */
}

.panel {
    width: 80%;
    background-color: #0c1622;
    margin: 50px auto 0;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.panel-heading h2 {
    color: aliceblue;
    font-family: 'Courier New', Courier, monospace;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.col-md-2,
.col-md-1 {
    color: #03e9f4;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #0c1622;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    margin-top: 20px;
}

.post-item {
    padding: 20px;
    border-bottom: 1px solid #00000020;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    color: #03e9f4;
    font-size: 18px;
    margin-bottom: 10px;
}

.post-content {
    color: #fff;
    margin-bottom: 10px;
}

.post-meta {
    color: #03e9f4;
    font-size: 14px;
}

.post-meta span {
    margin-right: 10px;
}

.btn {
    padding: 10px 20px;
    color: #03e9f4;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #03e9f4;
    border-radius: 5px;
    transition: all 0.5s ease;
    margin-right: 10px;
}

.btn:hover {
    background: #03e9f4;
    color: #fff;
    border-color: #03e9f4;
}

.btn>span {
    position: absolute;
}

.btn>span:nth-child(1) {
    width: 100%;
    height: 2px;
    background: -webkit-linear-gradient(left, transparent, #03e9f4);
    left: -100%;
    top: 0px;
    animation: line1 1s linear infinite;
}

@keyframes line1 {

    50%,
    100% {
        left: 100%;
    }
}

.btn>span:nth-child(2) {
    width: 2px;
    height: 100%;
    background: -webkit-linear-gradient(top, transparent, #03e9f4);
    right: 0px;
    top: -100%;
    animation: line2 1s 0.25s linear infinite;
}

@keyframes line2 {

    50%,
    100% {
        top: 100%;
    }
}

.btn>span:nth-child(3) {
    width: 100%;
    height: 2px;
    background: -webkit-linear-gradient(left, #03e9f4, transparent);
    left: 100%;
    bottom: 0px;
    animation: line3 1s 0.75s linear infinite;
}

@keyframes line3 {

    50%,
    100% {
        left: -100%;
    }
}

.btn>span:nth-child(4) {
    width: 2px;
    height: 100%;
    background: -webkit-linear-gradient(top, transparent, #03e9f4);
    left: 0px;
    top: 100%;
    animation: line4 1s 1s linear infinite;
}

@keyframes line4 {

    50%,
    100% {
        top: -100%;
    }
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.form-group {
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.button-group a {
    margin-right: 10px;
}

.button-group a:last-child {
    margin-right: 0;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info {
    color: #03e9f4;
    margin-left: 20px;
}

.footer {
    width: 100%;
    color: #03e9f4;
    text-align: center;
    padding: 20px 0;
    position: relative;
    /* 修改为 relative */
    margin-top: 10px;
    /* 添加 margin-top 以确保与上面的内容有10px的间隔 */
}


* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #03e9f4;
}

a:hover {
    color: #fff;
}

input,
button {
    background: transparent;
    border: 0;
    outline: none;
}

body {
    background: linear-gradient(#141e30, #243b55);
    display: flex;
    justify-content: space-between;
    /* 修改为 space-between 以确保内容和页脚之间有足够的空间 */
    align-items: flex-start;
    font-size: 16px;
    color: #03e9f4;
    position: relative;
    flex-direction: column;
    min-height: 100vh;
    /* 设置最小高度为视口高度 */
}

.panel {
    width: 80%;
    background-color: #0c1622;
    margin: 50px auto 0;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.panel-heading h2 {
    color: aliceblue;
    font-family: 'Courier New', Courier, monospace;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.col-md-2,
.col-md-1 {
    color: #03e9f4;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #0c1622;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    margin-top: 20px;
}

.post-item {
    padding: 20px;
    border-bottom: 1px solid #00000020;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    color: #03e9f4;
    font-size: 18px;
    margin-bottom: 10px;
}

.post-content {
    color: #fff;
    margin-bottom: 10px;
}

.post-meta {
    color: #03e9f4;
    font-size: 14px;
}

.post-meta span {
    margin-right: 10px;
}

.btn {
    padding: 10px 20px;
    color: #03e9f4;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #03e9f4;
    border-radius: 5px;
    transition: all 0.5s ease;
    margin-right: 10px;
}

.btn:hover {
    background: #03e9f4;
    color: #fff;
    border-color: #03e9f4;
}

.btn>span {
    position: absolute;
}

.btn>span:nth-child(1) {
    width: 100%;
    height: 2px;
    background: -webkit-linear-gradient(left, transparent, #03e9f4);
    left: -100%;
    top: 0px;
    animation: line1 1s linear infinite;
}

@keyframes line1 {

    50%,
    100% {
        left: 100%;
    }
}

.btn>span:nth-child(2) {
    width: 2px;
    height: 100%;
    background: -webkit-linear-gradient(top, transparent, #03e9f4);
    right: 0px;
    top: -100%;
    animation: line2 1s 0.25s linear infinite;
}

@keyframes line2 {

    50%,
    100% {
        top: 100%;
    }
}

.btn>span:nth-child(3) {
    width: 100%;
    height: 2px;
    background: -webkit-linear-gradient(left, #03e9f4, transparent);
    left: 100%;
    bottom: 0px;
    animation: line3 1s 0.75s linear infinite;
}

@keyframes line3 {

    50%,
    100% {
        left: -100%;
    }
}

.btn>span:nth-child(4) {
    width: 2px;
    height: 100%;
    background: -webkit-linear-gradient(top, transparent, #03e9f4);
    left: 0px;
    top: 100%;
    animation: line4 1s 1s linear infinite;
}

@keyframes line4 {

    50%,
    100% {
        top: -100%;
    }
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.form-group {
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.button-group a {
    margin-right: 10px;
}

.button-group a:last-child {
    margin-right: 0;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info {
    color: #03e9f4;
    margin-left: 20px;
}

.footer {
    width: 100%;
    color: #03e9f4;
    text-align: center;
    padding: 20px 0;
    position: relative;
    /* 修改为 relative */
    margin-top: 10px;
    /* 添加 margin-top 以确保与上面的内容有10px的间隔 */
}

.form-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #0c1622;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    margin-top: 20px;
}

.form-container h3 {
    color: #03e9f4;
    text-align: center;
    margin-bottom: 20px;
}

.form-container p {
    margin-bottom: 10px;
}

.form-container input[type="text"],
.form-container textarea {
    width: 90%;
    padding: 10px;
    background-color: #141e30;
    color: #03e9f4;
    border: 1px solid #03e9f4;
    border-radius: 5px;
}

.form-container input[type="submit"] {
    background-color: #03e9f4;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container input[type="submit"]:hover {
    background-color: #02c3e4;
}




* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #03e9f4;
}

a:hover {
    color: #fff;
}

input,
button {
    background: transparent;
    border: 0;
    outline: none;
}

body {
    background: linear-gradient(#141e30, #243b55);
    display: flex;
    justify-content: space-between;
    /* 修改为 space-between 以确保内容和页脚之间有足够的空间 */
    align-items: flex-start;
    font-size: 16px;
    color: #03e9f4;
    position: relative;
    flex-direction: column;
    min-height: 100vh;
    /* 设置最小高度为视口高度 */
}

.panel {
    width: 80%;
    background-color: #0c1622;
    margin: 50px auto 0;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.panel-heading h2 {
    color: aliceblue;
    font-family: 'Courier New', Courier, monospace;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #0c1622;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    margin-top: 20px;
}

.post-item {
    padding: 20px;
    border-bottom: 1px solid #00000020;
}

.post-item:last-child {
    border-bottom: none;
}

.post-title {
    color: #03e9f4;
    font-size: 18px;
    margin-bottom: 10px;
}

.post-content {
    color: #fff;
    margin-bottom: 10px;
}

.post-meta {
    color: #03e9f4;
    font-size: 14px;
}

.post-meta span {
    margin-right: 10px;
}

.btn {
    padding: 10px 20px;
    color: #03e9f4;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #03e9f4;
    border-radius: 5px;
    transition: all 0.5s ease;
    margin-right: 10px;
}

.btn:hover {
    background: #03e9f4;
    color: #fff;
    border-color: #03e9f4;
}

.btn>span {
    position: absolute;
}

.btn>span:nth-child(1) {
    width: 100%;
    height: 2px;
    background: -webkit-linear-gradient(left, transparent, #03e9f4);
    left: -100%;
    top: 0px;
    animation: line1 1s linear infinite;
}

@keyframes line1 {

    50%,
    100% {
        left: 100%;
    }
}

.btn>span:nth-child(2) {
    width: 2px;
    height: 100%;
    background: -webkit-linear-gradient(top, transparent, #03e9f4);
    right: 0px;
    top: -100%;
    animation: line2 1s 0.25s linear infinite;
}

@keyframes line2 {

    50%,
    100% {
        top: 100%;
    }
}

.btn>span:nth-child(3) {
    width: 100%;
    height: 2px;
    background: -webkit-linear-gradient(left, #03e9f4, transparent);
    left: 100%;
    bottom: 0px;
    animation: line3 1s 0.75s linear infinite;
}

@keyframes line3 {

    50%,
    100% {
        left: -100%;
    }
}

.btn>span:nth-child(4) {
    width: 2px;
    height: 100%;
    background: -webkit-linear-gradient(top, transparent, #03e9f4);
    left: 0px;
    top: 100%;
    animation: line4 1s 1s linear infinite;
}

@keyframes line4 {

    50%,
    100% {
        top: -100%;
    }
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.form-group {
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.button-group a {
    margin-right: 10px;
}

.button-group a:last-child {
    margin-right: 0;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info {
    color: #03e9f4;
    margin-left: 20px;
}

.footer {
    width: 100%;
    color: #03e9f4;
    text-align: center;
    padding: 20px 0;
    position: relative;
    /* 修改为 relative */
    margin-top: 10px;
    /* 添加 margin-top 以确保与上面的内容有10px的间隔 */
}

.form-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #0c1622;
    border-radius: 10px;
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);
    margin-top: 20px;
}

.form-container h3 {
    color: #03e9f4;
    text-align: center;
    margin-bottom: 20px;
}

.form-container p {
    margin-bottom: 10px;
}

.form-container input[type="text"],
.form-container textarea {
    width: 90%;
    padding: 10px;
    background-color: #141e30;
    color: #03e9f4;
    border: 1px solid #03e9f4;
    border-radius: 5px;
}

.form-container input[type="submit"] {
    background-color: #03e9f4;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container input[type="submit"]:hover {
    background-color: #02c3e4;
}

.post-details {
    margin-top: 20px;
    color: #03e9f4;
}

.post-content {
    margin-top: 20px;
    color: #fff;
}

.answer-container {
    margin-top: 40px;
    border-top: 1px solid #00000016;
}

.answer-item {
    margin-top: 20px;
    padding: 20px;
    background-color: #0c1622;
    border-bottom: 1px solid #00000020;
}

.answer-item:last-child {
    border-bottom: none;
}

.answer-details {
    margin-top: 20px;
    color: #03e9f4;
}

.answer-content {
    margin-top: 20px;
    color: #fff;
}

.reply-form {
    margin-top: 80px;
}

.reply-form h5 {
    margin-left: 40px;
}

.reply-form textarea {
    width: 90%;
    padding: 10px;
    background-color: #141e30;
    color: #03e9f4;
    border: 1px solid #03e9f4;
    border-radius: 5px;
}

.reply-form input[type="submit"] {
    background-color: #03e9f4;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reply-form input[type="submit"]:hover {
    background-color: #02c3e4;
}

.return-home {
    margin-top: 20px;
    text-align: right;
}

.return-home a {
    margin-right: 40px;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination-links {
    display: inline-block;
}

.pagination-links a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #03e9f4;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination-links a:hover {
    background-color: #02c3e4;
}

.pagination-links a.active {
    background-color: #02c3e4;
    cursor: default;
}


/* 删除按钮样式 */
.btn-danger {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-danger:hover {
    background-color: #ff1a1a;
    border-color: #ff1a1a;
}

.delete-post {
    margin-top: 20px;
    text-align: right;
}


/* 发布人、发布时间和浏览数的样式 */
.post-details {
    margin-top: 10px;
    color: #02c3e4;
    /* 更改颜色 */
    font-size: 14px;
}

.post-details span {
    margin-right: 15px;
}

.post-details span::before {
    content: '•';
    margin-right: 5px;
    color: #03e9f4;
}

.post-content {
    margin-top: 20px;
    color: #fff;
    /* 更改颜色 */
}

.delete-post {
    margin-top: 20px;
    text-align: right;
}

.btn-danger {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-danger:hover {
    background-color: #ff1a1a;
    border-color: #ff1a1a;
}


.post-details {
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
}

.post-details span {
    margin-right: 15px;
}

.post-details span::before {
    content: '•';
    margin-right: 5px;
    color: #03e9f4;
}

.post-content {
    margin-top: 20px;
    color: #fff;
}

.delete-post {
    margin-top: 20px;
    text-align: right;
}

.btn-danger {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-danger:hover {
    background-color: #ff1a1a;
    border-color: #ff1a1a;
}


.answer-container {
    margin-top: 30px;
}

.answer-item {
    background-color: #2c2c2c;
    border: 1px solid #03e9f4;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.answer-item h4 {
    margin-top: 0;
    color: #03e9f4;
}

.answer-details {
    margin-top: 5px;
    color: #6c757d;
    font-size: 14px;
}

.answer-details span {
    margin-right: 15px;
}

.answer-details span::before {
    content: '•';
    margin-right: 5px;
    color: #03e9f4;
}

.answer-content {
    margin-top: 10px;
    color: #fff;
}



 /* 发布人、发布时间和浏览数的样式 */
 .post-details {
    margin-top: 10px;
    color: #8a8a8a;
    font-size: 14px;
}

.post-details span {
    margin-right: 15px;
}

.post-details span::before {
    content: '•';
    margin-right: 5px;
    color: #00bfff;
}

.post-content {
    margin-top: 20px;
    color: #ffffff;
}

.delete-post {
    margin-top: 20px;
    text-align: right;
}

.btn-danger {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
    color: #ffffff;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #ff1a1a;
    border-color: #ff1a1a;
}


.answer-container {
    margin-top: 30px;
}

.answer-item {
    background-color:rgb(18, 32, 49);
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.answer-item h4 {
    margin-top: 0;
    color: #00bfff;
    font-size: 18px;
}

.answer-details {
    margin-top: 5px;
    color: #8a8a8a;
    font-size: 14px;
}

.answer-details span {
    margin-right: 15px;
}

.answer-details span::before {
    content: '•';
    margin-right: 5px;
    color: #00bfff;
}

.answer-content {
    margin-top: 15px;
    color: #ffffff;
    line-height: 1.6;
}

.answer-author {
    font-weight: bold;
    color: #00bfff;
}

.answer-date {
    color: #8a8a8a;
    font-size: 14px;
}

.answer-content p {
    margin: 0;
}


.answer-content {
    border-left: 4px solid #00bfff;
    padding-left: 15px;
    border-radius: 5px;
}


.reply-form {
    margin-top: 30px;
    background-color:  #0c1622;
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reply-form h5 {
    margin-top: 0;
    color: #00bfff;
    font-size: 18px;
}

.reply-form textarea {
    width: 100%;
    border: 1px solid #555555;
    border-radius: 5px;
    padding: 10px;
    background-color:rgb(15, 30, 48);
    color: #ffffff;
    resize: vertical;
}

.reply-form .btn {
    background-color: #00bfff;
    border-color: #00bfff;
    color: #ffffff;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

.reply-form .btn:hover {
    background-color: #0099cc;
    border-color: #0099cc;
}


